<template>
	<view>
		<div>
			<navitop>
				<i class="iconfont" slot="left-slot" @click="outlot">&#xe667;</i>
				<span slot="center-slot">商业资讯</span>
				<!-- <span slot="right-slot">123</span> -->
			</navitop>
		</div>
		<div :style="'margin-top:' +rHeight+ 'px;'">
			<prcter @runIndex="runIndex"></prcter>
		</div>
		<div>
			<prcter @runIndex="runIndex"></prcter>
		</div>
		<div>
			<prcter @runIndex="runIndex"></prcter>
		</div>
	</view>
</template>

<script>
import prcter from '@/components/common/prcter'
import navitop from '@/components/common/navi-top'
export default {
	components:{
		prcter,
		navitop
	},
	data(){
		return {
			rHeight: 40
		}
	},
	mounted() {
		this.rHeight = this.rHeight + uni.getSystemInfoSync().statusBarHeight;
	},
	methods:{
		outlot(){
			uni.navigateBack();
		},
		runIndex(val){
			console.log(val)
			uni.navigateTo({
				url:'/pages/common/news/ground?id='+val
			})
		}
	}
}

</script>

<style scoped lang="scss">
	
</style>
